<!DOCTYPE html>
<html lang="zh">
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
	<title>家校互动系统</title>
	<link rel="shortcut icon" href="favicon.ico" />
	 <link href="__TMPL__css/bootstrap.min.css" rel="stylesheet" type="text/css" />
	<link href="__TMPL__css/m.css" rel="stylesheet" type="text/css" />
	<script src="__TMPL__js/jquery.min.js"></script>
	<script src="__TMPL__js/iscroll.js"></script>
	<script src="__TMPL__js/m.js"></script>
	<!--[if lt IE 9]>
	<script src="js/html5.js"></script>
	<![endif]-->
</head> 

<script>
	
	$(document).ready(function(e) {
	$("#level_id").change(function ()
	{
		 lv_id = $('#level_id').find('option:selected').val();
		 term = $('#term').find('option:selected').val();
		 changeexam(lv_id,term);
		 
	});
	$("#term").change(function ()
	{
		 lv_id = $('#level_id').find('option:selected').val();
		 term = $('#term').find('option:selected').val();
		 changeexam(lv_id,term);
		 
	});
	});
	function changeexam(lv_id,term)
	{
		$("#exam_id").empty();
		$("#exam_id").append("<option value=''>选择考试</option>");
		$.getJSON("__URL__/loadexam/lv_id/"+lv_id+"/term/"+term,function(result){
		$.each(result, function(i, field){
		  $("#exam_id").append("<option value='"+field['id']+"'>"+field['exam_name']+"</option>");
		});
	  });
	}
	</script>

<body>

<form method="post" action="__URL__/result/type/{$type}">
<div  style=" background:url(__TMPL__images/cb2.jpg); width:100%; height:120px; line-height:60px;">
筛选：<select name="level_id" id="level_id">
						    <option value="">选择年级</option>
                             <volist name="levellist" id="vo">
						    <option value="{$vo.id}">{$vo.level_name}</option>
					      </volist>
                          </select>
		<select name="term" id="term">
<option value="">选择学期</option>
<option value="1">上学期</option>
<option value="2">下学期</option>
</select>

						<select name="exam_id" id="exam_id">
<option value="">选择考试</option>
</select>
<select name="class_id" id="class_id">
<option value="">班级</option>
<volist name="finalclasslist" id="vo">
<option value="{$vo.id}">{$vo.class_name}</option>
</volist>
</select>
<input name="name" type="text" class="ui-input" id="name" size="12"> 
&nbsp;<input name="提交" style="background:url(__TMPL__/images/search.jpg); width:112px; height:52px; border:0" type="submit" value=" " />
</div>
</form>
</p>
<div >
<if condition="($examinfo neq '') and ($classinfo neq '')">
<div style="text-align:center ; height:80px; line-height:80px;">{$examinfo.exam_name}</div>
<div >&nbsp; 班级：{$classinfo.class_name}</div>
<table width="98%" border="0" cellspacing="0" cellpadding="0" style="margin:auto;">
  <tr>
  <td height="50" align="center" style="font-weight:bold;">学号</td>
    <td height="25" align="center" style="font-weight:bold;">姓名</td>
     <volist name="subject" id="sj">
	<td height="25" align="center" style="font-weight:bold;">{$sj.KCMC}</td>
	</volist>
 </tr>
 <volist name="stlist" id="vs">

 <tr>
  <td height="50" align="center" style="font-weight:bold;">{$vs.XH}</td>
    <td height="25" align="center" style="font-weight:bold;">{$vs.XM}</td>
     <volist name="subject" id="sj">
	<td height="25" align="center" style="font-weight:bold;">{~loadscoreresult($examinfo[id],$vs['id'],$sj['id'])}</td>
	</volist>
 </tr>
</volist>
</table>
</if>
</div>


</body>
</html>
